import React from 'react'
import { Link, Outlet } from 'react-router-dom'
import styles from '../router-v5-nest/Layout.module.css'
export default function Layout () {
  return (
    <div className={styles['layout-container']}>
      <div className={styles.left}>
        <p>
          <Link to='/layout/employee'>员工管理</Link>
        </p>
        <p>
          <Link to='/layout/salary'>工资管理</Link>
        </p>
      </div>
      <div className={styles.right}>
        {/* 二级路由出口 */}
        <Outlet />
      </div>
    </div>
  )
}
